namespace Digitalmes.Application.Mes;

/// <summary>
/// 物料有效期数据
/// </summary>
public sealed class MdItemExpiryDto : Dto
{
    /// <summary>
    /// 物料Id
    /// </summary>
    public long MdItemId { get; set; }

    /// <summary>
    /// 物料条码
    /// </summary>
    [Required, NotNull]
    [StringLength(64)]
    public string? Barcode { get; set; }

    /// <summary>
    /// 有效期（天）
    /// </summary>
    public int Durability { get; set; }

    /// <summary>
    /// 有效期截止日期
    /// </summary>
    public DateTime ExpireDate { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }

    /// <summary>
    /// 创建人
    /// </summary>
    public string? CreateUser { get; set; }

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }

    /// <summary>
    /// 修改人
    /// </summary>
    public string? UpdateUser { get; set; }
}
